import React, { Component } from 'react';
import { Table } from 'antd';
class TableChart extends Component {
  state = {


  }

  render() {
    const columns = [
      {
        title: '序号',
        dataIndex: 'index',
      },
      {
        title: '资源名称',
        dataIndex: 'name',
      },
      {
        title: '时间',
        dataIndex: 'time',
      },
      {
        title: '进度',
        dataIndex: 'aggress',
      },
    ];

    const data = [];
    for (let i = 1; i < 100; i++) {
      data.push({
        index: i,
        name: '人员户口管理',
        time: '2020/4/13 9:12',
        aggress: '27%',
      });
    }

    return (
          <div className="home-table" > <Table id="tb" rowKey={record => record.index} columns={columns} pagination={false} dataSource={data} scroll={{y:'115px'}}/></div>
    )
  }
}
export default TableChart;